<template>
  <div class="homedata">
    <HomeList :data="HomeData"/>
  </div>
</template>

<script>
import HomeList from "@/components/home/HomeList"
export default {
  name: 'HomeData',
  data(){
    return{
      HomeData:[]
    }
  },
  components:{
    HomeList
  },
  props:{
    url:{
      type:String,
      default:""
    }
  },
  mounted(){
    this.$axios.get(this.url)
    .then(res => {
      this.HomeData = res.data.movement
    })
    .catch(error => {
      console.log(error);
    })
  }
}
</script>

<style lang="css" scoped>

</style>